//Button.c

bool button(unsigned short int pin)
{
	auto bool result = read(pin);
	
	if (result == true)
	{
		if (buttonState == true)
		{
			return (false);
		}
		else
		{
			return (true);
		}
	}
	else
	{
		if (buttonState = true)
		{
			return (true);
		}
		else
		{
			return (false);
		}
	}
}